package com.fengwk.resource.service;

import java.util.Collection;
import java.util.List;

import com.fengwk.resource.face.entity.ResFile;
import com.fengwk.resource.face.model.File;


public interface FileService {

	ResFile save(Long fileId, String name, String type, String size, Long length, String relativePath, String absolutePath, Long userId, String md5, Long serverId, String linkUrl);
	
	File getLastByMd5(String md5);
	
	File getByFileId(Long fileId);
	
	List<File> listByFileIds(Collection<Long> fileIds);
	
	File getDefaultIcon();
	
	String getRealUrl(Long fileId, Boolean thumbnail);
	
	List<File> toFileList(Collection<ResFile> rfs);
	
	boolean shouldThumbnail(String type);
	
}
